Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(floating-big-letter): correct padding and positioning #91

Merged
merged 2 commits into from
Jan 10, 2025

Conversation

9ary
Copy link
Contributor

@9ary 9ary commented Sep 15, 2024

This fixes a couple small bugs with floating letter hints.

Before:
image

After:
image

This fixes inconsistent/incorrect padding
There is always at least one, empty line in a buffer.
When replacing the range [0,0[, the new contents are inserted before
said empty line.
As of nvim 0.10, this results in the new contents being scrolled up by
one row, breaking the vertical centering.
Fix this by ensuring that the entire buffer content is overridden.
@s1n7ax s1n7ax merged commit c9647c2 into s1n7ax:main Jan 10, 2025
@s1n7ax
Copy link
Owner

s1n7ax commented Jan 10, 2025

@9ary Thanks again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants